package com.fjd.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@Builder
@AllArgsConstructor
public class SalesOrder {
    /**
     * 订单状态
     */
    //优雅永不过时
    public static final String PENDING_CONFIRMATION = "1"; // 待确认
    public static final String PENDING_PAYMENT = "2";       // 待支付
    public static final String PAID = "3";                 // 已支付
    public static final String PENDING_SHIPMEN = "4";         // 待发货
    public static final String SHIPPED = "5";              // 已发货
    public static final String IN_TRANSIT = "6";           // 运输中
    public static final String OUT_FOR_DELIVERY = "7";     // 派送中
    public static final String PENDING_RECEIPT = "8";      // 待签收
    public static final String RECEIVED = "9";             // 已签收
    public static final String AFTER_SALE_RETURNING = "10"; // 售后/退货中
    public static final String CANCELLED = "11";            // 已取消
    public static final String PENDING_REVIEW = "12";      // 待评价
    public static final String REVIEWED = "13";            // 已评价

    private String orderId;

    private String orderStatus;

    private LocalDateTime orderDate;

    private LocalDateTime modifiedDate;

    private String businessType;

    private String customerId;

    private String addressId;

    private String referenceId;

    private String paymentMethod;

    private BigDecimal orderTotal;

    private String invoiceInfo;

    private LocalDateTime lastModifiedDate;

    private String lastModifiedBy;

    private String note;

}
